import request from '@/utils/request'

// 查询浏览列表
export function listViews(query) {
    return request({
        url: '/business/views/list',
        method: 'get',
        params: query
    })
}

// 查询浏览详细
export function getViews(viewsId) {
    return request({
        url: '/business/views/' + viewsId,
        method: 'get'
    })
}

// 新增浏览
export function addViews(data) {
    return request({
        url: '/business/views',
        method: 'post',
        data: data
    })
}

// 修改浏览
export function updateViews(data) {
    return request({
        url: '/business/views',
        method: 'put',
        data: data
    })
}

// 删除浏览
export function delViews(viewsId) {
    return request({
        url: '/business/views/' + viewsId,
        method: 'delete'
    })
}
